@charset "utf-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #fafafa;
  font: bold 20px 'Courier';
}

#main {
  margin: 100px auto;
  width: 360px;
  height: 420px;
  background-color: #b7d4a8;
  border: 10px solid #000;
  border-radius: 30px;
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-around;

  #stage {
    width: 304px;
    height: 304px;
    border: 2px solid #000000;
    position: relative;

    #snake > div {
      width: 10px;
      height: 10px;
      background-color: #000000;
      border: 1px solid #b7d4a8;
      position: absolute;
    }

    #food {
      left: 40px;
      top: 100px;
      width: 10px;
      height: 10px;
      position: absolute;
      display: flex;
      flex-flow: row wrap;
      justify-content: space-between;
      align-content: space-between;

      & > div {
        width: 4px;
        height: 4px;
        background-color: #000000;
        transform: rotate(45deg);
      }
    }
  }

  #score-panel {
    width: 300px;
    display: flex;
    justify-content: space-between;
  }

}

